package pta.期末训练集.金字塔04;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count=0;
        while(scanner.hasNext()){
            int s =scanner.nextInt();
            stat(s,count);
//            count++;
        }
    }
    public static void stat(int n,int count){
        if(count != 0) System.out.println("\n");
        for (int i = 0; i <n; i++) {
            for (int j = 0; j < (n-i)-1; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2*i+1; j++) {
                System.out.print("*");

            }

            System.out.println();
        }
    }
}